package edu.je.history.controller;

import com.junqson.je.common.annotation.LoginRequire;
import com.junqson.je.common.model.ApiResult;
import edu.je.history.Service.CollectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @author: Anhlaidh
 * @date: 2021-04-21 22:29
 */
@RestController
public class CollectionController {
    @Autowired
    CollectionService collectionService;
    @LoginRequire
    @RequestMapping("/browse/put/collection")
    public ApiResult putBrowseCollection(@RequestParam("id") int companyId) {
        return collectionService.putBrowseCollection(companyId);
    }
    @LoginRequire
    @RequestMapping("/browse/delete/collection")
    public ApiResult deleteBrowseCollection(@RequestParam("id") int companyId) {
        return collectionService.deleteBrowseCollection(companyId);
    }
}
